package com.waves.task.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.waves.core.web.domain.entities.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 任务领取表;
 *
 * @author : dlw
 * @date : 2024-9-18
 */
@ApiModel(value = "任务领取表", description = "")
@TableName("task_receive")
@Data
@Accessors(chain = true)
public class TaskReceive {

    @TableId(value = "id", type = IdType.AUTO)
    private long id;

    /**
     * 任务id
     */
    private long taskId;
    /**
     * 任务状态 0 任务已取消 1任务进行中 2任务已完成 3任务已结束
     *
     * @see com.waves.task.domain.enums.TaskReceiveStatusEnum
     */
    private Integer status;

    /**
     * 领取者id
     */
    private Long receiverId;

    /**
     * 领取者名称
     */
    private String receiverName;

    /**
     * 领取时间
     */
    private Long receiveTime;

    @TableField(value = "created_by")
    private Long createdBy;

    @TableField(value = "created_time")
    private Long createdTime;

    @TableField(value = "created_name")
    private String createdName;

    @TableField(value = "updated_by")
    private Long updatedBy;

    @TableField(value = "updated_time")
    private Long updatedTime;

    @TableField(value = "updated_name")
    private String updatedName;

    @TableField("del_flag")
    @TableLogic(delval = "id")
    private Integer delFlag;

}